#ifndef GET_CAN_DATA_H
#define GET_CAN_DATA_H

#include <QObject>
#include <QThread>
#include <QVector>//类似c++中的stl vector容器
#include <ControlCAN.h>
#include <QQueue>


extern int g_data1[8];
extern int g_data2[8];

/*
 * 获取CAN数据类
 */
class Get_CAN_Data : public QThread
{
    Q_OBJECT

public:
    bool run_state = true;
    uint RecvCnt_CAN0=0;

    virtual void run();
    void close_Device();
    void init(DWORD EQU_Type,DWORD EQU_Index,DWORD EQU_Number);
signals:
    void signal_CanData(QString ThreadID,QString ID,QString TimeStamp,QString TimeFlag,QString SendType,QString RemoteFlag,
                        QString ExternFlag,QString DataLen,QString Data,QString Reserved);
    void signal_Error(int error);
private:

};

class Any_CAN_Data : public QThread
{
    Q_OBJECT

public:
    virtual void run();
    QString hex2Str(unsigned char *in, int len);

signals:

};


#endif // GET_CAN_DATA_H
